<?php

class Contactinfo extends Controller {

	function Contactinfo(){
		parent::Controller();
		$this->common_model->checklogin();
		$this->load->model('contactinfo_model');
	}	
	function index(){					
		$this->_loadview();
	}
	function save(){
		$this->contactinfo_model->save();
		$this->_loadview();
	}
	function _loadview(){
		$data = $this->common_model->general();		
		$data['bodyview'] = 'contactinfo/edit';		
		$data['detail'] = $this->contactinfo_model->getdetail();
		$this->load->view('mastertemplate',$data);
	}
}

/* End of file contactinfo.php */
/* Location: ./system/application/admin/controllers/contactinfo.php */